<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../jquery-3.3.1/jquery-3.3.1.min.js"></script>
    <script src="../../jquery-3.3.1/jquery-3.3.1.js"></script>


    <script type="text/javascript" src="../../../tool/ajax.js"></script>
</head>
<body style="display: flex;flex-direction: column;align-content: center">
<img id="img" style="height: 80%;width: 80%;margin: 0 auto">

</img>
</body>
<script>

    window.onload=function (ev)
    {
       var id= GetQueryString("id")
        ajaxget("admin/taskQR","id="+id,function (data) {

            document.getElementById("img").src=data.data
        })

    }
    function GetQueryString(name)
    {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r!=null)return  unescape(r[2]); return null;
    }
</script>
</html>